package tiandang.core.service;

import tiandang.core.error.BusinessException;
import tiandang.core.model.Promo;

import java.math.BigDecimal;
import java.util.List;

public interface PromoService {

  Object getList(Long startTimestamp, Long endTimestamp, Integer currentPage, Integer limit);

  Promo getPromoById(Integer id);

  void save(Promo promo) throws BusinessException;

  void update(Promo promo) throws BusinessException;

  void delete(Integer id);

  void setIsShow(Integer id, Integer isShow);

  void overNow(Integer id);

  void addIncomeAmount(Integer id, BigDecimal income);

  void minusIncomeAmount(Integer id, BigDecimal income);

  List<Promo> getListByIdList(List<Integer> idList);

  List<Promo> getListByManagerId(Integer managerId);
}
